﻿namespace Profit.Controls
{
    using System.Windows;
    using System.Windows.Controls;
    using Core;

    /// <summary>
    /// Interaction logic for AgentControl.xaml
    /// </summary>
    public partial class AgentControl : UserControl
    {
        public static DependencyProperty AgentProperty = DependencyProperty.Register("Agent", typeof(Agent), typeof(AgentControl), new PropertyMetadata((Agent)null));
        
        public AgentControl()
        {
            InitializeComponent();
        }
        /// <summary>
        /// Obtains or defines the agent
        /// </summary>
        public Agent Agent
        {
            get { return GetValue(AgentProperty) as Agent; }
            set { SetValue(AgentProperty,value); }
        }
        
    }
}
